<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>挂单列表</title>
    <link rel="stylesheet" href="/dist/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/style/admin.css" media="all">
</head>

<body>

    <div class="layui-fluid">
        <div class="layui-card">
            <table id="LAY-order-manage" lay-filter="LAY-order-manage" lay-data="{id: 'idTest'}"></table>
            <!-- //订单状态0：待付款1：待放行2：未付款过时3：未放行过时4；被举报 5正常放行 6:客服仲裁放行 7：客服仲裁不放行 -->
            <script type="text/html" id="orderStatus">
                var orderStatus = function (d) {
                if (d.orderStatus == 0) {
                return '<div>待付款</div>';
                } else if (d.orderStatus == 1){
                return '<div>待放行</div>';
                } else if (d.orderStatus == 2){
                return '<div>未付款过时</div>';
                }else if (d.orderStatus == 3){
                return '<div>未放行过时</div>';
                }else if (d.orderStatus == 4){
                return '<div>被举报</div>';
                }else if (d.orderStatus == 5){
                return '<div>正常放行</div>';
                }else if (d.orderStatus == 6){
                return '<div>客服仲裁放行</div>';
                }else if (d.orderStatus == 7){
                return '<div>客服仲裁不放行</div>';
                }else{
                return '<div>未知情况</div>';
                }
                };
            </script>

            <script type="text/html" id="table-useradmin-webuser">
                <a class="layui-btn layuiadmin-btn-useradmin layui-btn-xs" lay-event="view">
                    <i class="layui-icon layui-icon-picture"></i>查看
                </a>
            </script>
        </div>
    </div>


    <script src="/dist/layui/layui.js"></script>
    <script src="/static/js/common.js"></script>
    <script>
        layui.config({
            base: base_url + '/dist/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'order', 'table'],
            function () {
                var $ = layui.$,
                    form = layui.form,
                    table = layui.table;
            });
    </script>
</body>

</html>